package com.zw.stock_sell_storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zw.stock_sell_storage.dto.SaleStatisticDto;
import com.zw.stock_sell_storage.dto.ex.QueryTimeScopeDtoEx;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SaleStatisticMapper extends BaseMapper<SaleStatisticDto> {
    List<SaleStatisticDto> selectSaleStatisticAsGoodsType(@Param("queryTimeScopeDtoEx") QueryTimeScopeDtoEx queryTimeScopeDtoEx);
    List<SaleStatisticDto> selectSaleStatisticAsGoodsCode(@Param("queryTimeScopeDtoEx") QueryTimeScopeDtoEx queryTimeScopeDtoEx);
    List<String> selectSaleStatisticYear();
    List<SaleStatisticDto> selectSaleStatisticAsGoodsTypeAndMonth(@Param("year") String year);
}
